package com.ruoyi.lock.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.springframework.data.annotation.Transient;

import java.util.Date;

/**
 * 租户信息对象 a_tenant
 * 
 * @author ruoyi
 * @date 2024-04-01
 */
@Data
public class ATenant extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 电话 */
    @Excel(name = "电话")
    private String phone;

    /** 身份证正面照 */
    @Excel(name = "身份证正面照")
    private String idCardPositive;

    /** 身份证反面照 */
    @Excel(name = "身份证反面照")
    private String idCardReverse;

    /** 本人照片 */
    @Excel(name = "本人照片")
    private String myPhoto;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /** 用户id */
    private Long userId;

    /** 部门id */
    private Long deptId;

    @Transient
    private String deptName;
    @Transient
    private String nickName;

    //房间id
    private String roomId;

    private int keyGroupId;

    //用户类型
    private String type;
    //用户状态（0正常，1冻结）
    private int freezeStatus;
    private Integer delFlag;

    /** 身份证 */
    private String idCardNumber;
    /** 0、通过  1、驳回 */
    private String isFlag;
    /** 微信id */
    private String openId;
    /** 唯一标识 */
    private String uniCode;
    /** 密码下发状态 */
    private String pwdStatus;
    /** 卡片下发状态 */
    private String cardStatus;

    private Long agentsid;
    private Long cellid;
    private Long ldid;
    private Long roomid;
    private Long lcid;
    private String gender;

    @Transient
    private String cellidName;
    @Transient
    private String ldidName;
    @Transient
    private String roomName;

    /** 密码 */
    private String password;

    /** 入住状态  0、未入住  1、已入住 */
    private String ruzhuStatus;

    private String pwdId;

    private int pageNum;
    private int pageSize;
}
